<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:p="http://primefaces.org/ui">

<h:head>
	<title>Agenda JSF</title>
</h:head>

<h:body>
	<h:outputStylesheet library="css" name="style.css" />
	<div id="header">
		<h1>
			Agenda JSF
			<p:commandLink value="Login" style="float: right;" onclick="login.show();"/>
		</h1>
		
		<div style="clear: both"></div>
	</div>

	<div id="conteudo">
		<h:form>
			<p:dialog header="Login" widgetVar="login" modal="true" showEffect="clip" hideEffect="clip">
			<h:panelGrid columns="2">
				<h:outputLabel value="Email: *" />
				<p:inputText value="#{usuarioBean.usuario.email}"/>
				<h:outputLabel value="Senha: *" />
				<p:password value="#{usuarioBean.usuario.senha}"/>
				<p:commandButton value="Entrar"/>
				<p:commandLink value="Cadastre-se!" action="cadastro"/>
			</h:panelGrid>
		</p:dialog>
		<p:fieldset>
			[Pagina em construcao]
		</p:fieldset>
		</h:form>
	</div>

	<div id="footer">
		<hr />
		&copy; 2012 Agenda JSF. Desenvolvimento: <a href="http://www.linkedin.com/pub/lucas-marques-da-silva/24/431/489" target="blank">Lucas Marques</a>
		<p:graphicImage url="/resources/images/loading.gif" style="float: right;" rendered="false"/>
	</div>
</h:body>
</html>